
function switchTab(ProTag, ProBox) {
    for (i = 1; i <= 4; i++) {

        if ("tab" + i == ProTag) {

            document.getElementById(ProTag).getElementsByTagName("a")[0].className = "on";

        } else {

            document.getElementById("tab" + i).getElementsByTagName("a")[0].className = "";

        }

        if ("con" + i == ProBox) {

            document.getElementById(ProBox).style.display = "";

        } else {

            document.getElementById("con" + i).style.display = "none";

        }

    }

}




function switchTab00(ProTag, ProBox) {

    for (i = 1; i <= 2; i++) {

        if ("tab00" + i == ProTag) {

            document.getElementById(ProTag).getElementsByTagName("a")[0].className = "on";

        } else {

            document.getElementById("tab00" + i).getElementsByTagName("a")[0].className = "";

        }

        if ("con00" + i == ProBox) {

            document.getElementById(ProBox).style.display = "";

        } else {

            document.getElementById("con00" + i).style.display = "none";

        }

    }

}

